package pojo.postman;

import lombok.Data;

import java.util.Optional;

@Data
public class PostManChildItem {
    private String name;
    private PostManRequest request;

    public String getName() {
        name = Optional.ofNullable(name).orElse("");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public PostManRequest getRequest() {
        request = Optional.ofNullable(request).orElse(new PostManRequest());
        return request;
    }

    public void setRequest(PostManRequest request) {
        this.request = request;
    }
}
